<%@page import="com.carlyang.jspservlet.model.People"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EL表达式对象操作Test</title>
</head>
<body>

<!-- 

-->
<%
	People carlyang = new People();
	carlyang.setId(1);
	carlyang.setName("杨东");
	carlyang.setAge(25);
	request.setAttribute("carlyang", carlyang);//将对象设置为request的属性
%>

<h2>id:${carlyang.id}</h2>
<h2>姓名:${carlyang.name}</h2>
<h2>年龄:${carlyang.age}</h2>
</body>
</html>